using System.Text;
using GrpcDemo.Authentication;
using Microsoft.IdentityModel.Tokens;

public static class GlobalConst
{
    public const string AdminRoleUsername = "bsi";
    public const string AdminRoleValue = "admin";
    public const string GuestRoleUsername = "guest";
    public const string Password = "123456";

    private static readonly RsaKeyHelper RsaKeyHelper = new("Certs/private.key", "Certs/public.key");
    public static readonly RsaSecurityKey RsaPublicSecurityKey = new(RsaKeyHelper.PublicKey);
    public static readonly RsaSecurityKey RsaPrivateSecurityKey = new(RsaKeyHelper.PrivateKey);
}
